package com.fsts.entity;

import java.io.Serializable;
import java.math.BigInteger;

/**
 * 
 * 公钥
 * 
 * @author
 * @version 1.0
 * @since JDK1.6(建议)
 */
public class PrivateKey implements Serializable {
	private static final long serialVersionUID = 5052416657708801398L;
	private int id;
	private BigInteger p;
	private BigInteger q;
	private BigInteger d;

	public int getId() {
		return id;
	}

	public PrivateKey() {
		super();
	}

	public PrivateKey(BigInteger p, BigInteger q, BigInteger d) {
		super();
		this.p = p;
		this.q = q;
		this.d = d;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BigInteger getP() {
		return p;
	}

	public void setP(BigInteger p) {
		this.p = p;
	}

	public BigInteger getQ() {
		return q;
	}

	public void setQ(BigInteger q) {
		this.q = q;
	}

	public BigInteger getD() {
		return d;
	}

	public void setD(BigInteger d) {
		this.d = d;
	}

	@Override
	public String toString() {
		return this.p + "," + this.q + "," + this.d;
	}
}
